import request from '@/utils/http'
// 表格数据查询
export function loadMore(params: any): any {
  return request({
    url: `/api/profiles/loadMore/${params.page}/${params.size}`,
    method: 'get',
  })
}
// 搜索表格数据查询
export function searchVal(params: any): any {
  return request({
    url: `/api/profiles/search/${params.searchVal}/${params.page}/${params.size}`,
    method: 'get',
  })
}
// 表格数据编辑保存
export function profilesEdit(data: any): any {
  return request({
    url: `/api/profiles/edit/${data.id}`,
    method: 'post',
  })
}
// 表格数据删除
export function profilesDelete(params: any): any {
  return request({
    url: `/api/profiles/delete/${params.id}`,
    method: 'delete',
  })
}
// 创建表格数据
export function profilesAdd(data: any): any {
  return request({
    url: `api/profiles/add`,
    method: 'post',
    data
  })
}